package com.jdd.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 项目表
 * </p>
 *
 * @author zly
 * @since 2022-03-23
 */
@Data
@ApiModel(value="TProject对象", description="项目表")
public class TProject implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty(value = "项目名称")
    private String name;

    @Dict(dicCode = "project_type")
    @ApiModelProperty(value = "项目类型")
    private Integer projectType;

    @Dict(dicCode = "project_scale")
    @ApiModelProperty(value = "项目规模")
    private Integer projectScale;

    @ApiModelProperty(value = "项目负责人")
    private String projectManager;

    @ApiModelProperty(value = "项目负责人手机号")
    private String phoneNumber;

    @ApiModelProperty(value = "项目所在省")
    private String province;

    @ApiModelProperty(value = "项目所在市")
    private String city;

    @ApiModelProperty(value = "项目所在区")
    private String region;

    @ApiModelProperty(value = "项目地址")
    private String address;

    @ApiModelProperty(value = "行政区域编码")
    private String regionCode;

    @ApiModelProperty(value = "项目经度")
    private String longitude;

    @ApiModelProperty(value = "项目纬度")
    private String dimension;

    @ApiModelProperty(value = "状态1-正常2-停用")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    @ApiModelProperty(value = "区域id")
    private String sysAreaId;

    @ApiModelProperty(value = "区域名称")
    private String sysAreaName;

    @ApiModelProperty(value = "编号")
    private Integer code;

    @ApiModelProperty(value = "人行项目编号")
    private String sysProjectCode;

}
